<div xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib"><h:form>
	<rich:panel styleClass="blue-panel">
		<ctg:status />
		<s:decorate id="wizar" template="/templates/wizard.xhtml">
			<ui:define name="step-title">#{messages['label.suggest.step.title.6']}</ui:define>
			<ui:define name="step-tip">#{messages['label.suggest.step.tip.6']}</ui:define>
			<ui:define name="step-form">
				<ui:repeat value="#{objektSuggest.osobinaGroupKeys}" var="key">
					<fieldset><legend><h:outputText
						value="#{messages[stringUtil.merge('label.tip_osobine.',key)]}" /></legend>
					<rich:dataGrid value="#{objektSuggest.osobineGroupedByTip[key]}"
						var="mogucaOsobina" columns="4">
						<h:selectBooleanCheckbox
							value="#{objektSuggest.osobineMap[mogucaOsobina.idOsobine]}" />
						<h:outputText
							value="#{messages[stringUtil.merge('label.osobina.',mogucaOsobina.idOsobine)]}" />
					</rich:dataGrid></fieldset>
				</ui:repeat>
				<!-- <rich:dataGrid value="#{objektSuggest.osobine}" var="o" columns="5">
						<h:selectBooleanCheckbox value="#{objektSuggest.osobineMap[o.idOsobine]}"/>							
						<h:outputText value="#{o.naziv}" />
					</rich:dataGrid>-->
			</ui:define>
			<ui:define name="buttn-cancel">
		<h:commandButton styleClass="submit"
							value="#{messages['label.objekt.input.button.update']}"
							action="#{objektSuggest.zapisiObjekt}" rendered="#{objektSuggest.editMode}" />
						<ctg:nbsp/>		
				<a:commandButton value="#{messages['label.input.cancel']}"
					action="end" immediate="true" />
			</ui:define>
			<ui:define name="buttn-prev">
				<a:commandButton value="#{messages['label.input.back']}"
					action="#{objektSuggest.previousStep}" reRender="wizardpanel" />
			</ui:define>
			<ui:define name="buttn-next">
					
				<a:commandButton value="#{messages['label.input.next']}"
					action="#{objektSuggest.nextStep}" reRender="wizardpanel" />
			</ui:define>
		</s:decorate>
	</rich:panel>
</h:form></div>